home *** CD-ROM | disk | FTP | other *** search
- Path: news.gate.net!!pbfreenet!p004927b
- From: p004927b@pbfreenet.seflin.lib.fl.us (Laura Michaels)
- Newsgroups: comp.lang.c
- Subject: Re: C/C++ cross-platform compatibility
- Date: 7 Mar 1996 18:23:17 GMT
- Organization: SEFLIN Free-Net - Palm Beach
- Message-ID: <4hn9il$hh1@news.seflin.lib.fl.us>
- References: <4hfvlk$dn1@bay>
- NNTP-Posting-Host: pbfreenet.seflin.lib.fl.us
- X-Newsreader: TIN [version 1.2 PL2]
-
- charrick@netrover.com wrote:
- : I'm working on an application I want to compile on many
- : different platforms. Somewhere along the line, I need to
- : obtain a list of all files in a directory. In OS/2, DOS,
- : WinNT, etc... the way to do this is with DosFindFirst and
- : DosFindNext. However, these are not part of the ANSI
- : standard, so I want to know, what should I use? Are these
- : actually supported on everything, or is there another way
- : to do this?
- : --------------------------
- : Stephane Charette, charrick@netrover.com
- --
-
- Routines related to files and directories (iostreams or the C
- stream functions excluded) are not usually portable across platforms. If
- it were me, I'd use the POSIX extensions for directory functions where
- available. I'd use #ifdefs to add code for platforms that aren't POSIX
- compliant.
-
-
- Laura Michaels
- p004927b@pbfreenet.seflin.lib.fl.us
- http://members.aol.com/lauram3017/index.html
-
-